<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CMS内容管理系统</title>
    <link rel="stylesheet" type="text/css" href="style/basic.css" />
    <link rel="stylesheet" type="text/css" href="style/index.css" />
    <script type="text/javascript" src="js/reg.js"></script>
    <script type="text/javascript" src="config/static.php?type=index"></script>
</head>
<body>
<?php $_tpl->create('header.tpl'); ?>
<div id="user">
    <?php if(@$this->_vars['cache']) { ?>
        <?php echo @$this->_vars['member'];?>
    <?php } else { ?>
        <?php if(@$this->_vars['login']) { ?>
            <h2>会员登录</h2>
            <form method="post" name="login" action="register.php?action=login">
                <label>用户名：<input type="text" name="user" class="text" /></label>
                <label>密　码：<input type="password" name="pass" class="text" /></label>
                <label class="yzm">验证码：<input type="text" name="code" class="text code" /> <img src="config/code.php" onclick="javascript:this.src='config/code.php?tm='+Math.random();" class="code" /></label>
                <p><input type="submit" name="send" value="登录" onclick="return checkLogin();" class="submit" /> <a href="register.php?action=reg">注册会员</a> <a href="###">忘记密码?</a></p>
            </form>
        <?php } else { ?>
            <h2>会员信息</h2>
            <div class="a">您好，<strong><?php echo @$this->_vars['user'];?></strong> 欢迎光临</div>
            <div class="b">
                <img src="images/<?php echo @$this->_vars['face'];?>" alt="<?php echo @$this->_vars['user'];?>" />
                <a href="###">个人中心</a>
                <a href="###">我的评论</a>
                <a href="register.php?action=logout">退出登录</a>
            </div>
        <?php } ?>
    <?php } ?>

    <h3>最近登录会员 <span>────────────</span></h3>
    <?php if(@$this->_vars['AllLaterUser']) { ?>
        <?php foreach($this->_vars['AllLaterUser'] as $key=>$value) { ?>
            <dl>
                <dt><img src="images/<?php echo $value->face; ?>" alt="<?php echo $value->user; ?>" /></dt>
                <dd><?php echo $value->user; ?></dd>
            </dl>
        <?php } ?>
    <?php } ?>
</div>
<div id="news">
    <h3><a href="details.php?id=<?php echo @$this->_vars['TopId'];?>" target="_blank"><?php echo @$this->_vars['TopTitle'];?></a></h3>
    <p>核心提示：<?php echo @$this->_vars['TopInfo'];?><a href="details.php?id=<?php echo @$this->_vars['TopId'];?>" target="_blank">[查看全文]</a></p>
    <p class="link">
        <?php if(@$this->_vars['NewTopList']) { ?>
        <?php foreach($this->_vars['NewTopList'] as $key=>$value) { ?>
        <a href="details.php?id=<?php echo @$this->_vars['TopId'];?>" target="_blank"><?php echo $value->title; ?></a> <?php echo $value->line; ?>
        <?php } ?>
        <?php } ?>
    </p>
    <ul>
        <?php if(@$this->_vars['NewList']) { ?>
            <?php foreach($this->_vars['NewList'] as $key=>$value) { ?>
                <li><em><?php echo $value->date; ?></em><a href="details.php?id=<?php echo $value->id; ?>" target="_blank"><?php echo $value->title; ?></a></li>
            <?php } ?>
        <?php } ?>
    </ul>
</div>
<div id="pic">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="scriptmain" name="scriptmain" codebase="http://download.macromedia.com/pub/shockwave/cabs/
	flash/swflash.cab#version=6,0,29,0" width="268" height="193">
        <param name="movie" value="images/lbxml.swf">
        <param name="quality" value="high">
        <param name="scale" value="noscale">
        <param name="LOOP" value="false">
        <param name="menu" value="false">
        <param name="wmode" value="transparent">
        <embed src="images/lbxml.swf" width="268" height="193" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" salign="T" name="scriptmain" menu="false" wmode="transparent">
    </object>
</div>
<div id="rec">
    <h2>特别推荐</h2>
    <ul>
        <?php if(@$this->_vars['NewRecList']) { ?>
        <?php foreach($this->_vars['NewRecList'] as $key=>$value) { ?>
        <li><em><?php echo $value->date; ?></em><a href="details.php?id=<?php echo $value->id; ?>" target="_blank"><?php echo $value->title; ?></a></li>
        <?php } ?>
        <?php } ?>
    </ul>
</div>
<div id="sidebar-right">
    <div class="adver"><script type="text/javascript" src="js/sidebar_adver.js"></script></div>
    <div class="hot">
        <h2>本月热点</h2>
        <ul>
            <?php if(@$this->_vars['MonthHotList']) { ?>
                <?php foreach($this->_vars['MonthHotList'] as $key=>$value) { ?>
                    <li><em><?php echo $value->date; ?></em><a href="details.php?id=<?php echo $value->id; ?>" target="_blank"><?php echo $value->title; ?></a></li>
                <?php } ?>
            <?php } ?>
        </ul>
    </div>
    <div class="comm">
        <h2>本月评论</h2>
        <ul>
            <?php if(@$this->_vars['MonthCommentList']) { ?>
                <?php foreach($this->_vars['MonthCommentList'] as $key=>$value) { ?>
                    <li><em><?php echo $value->date; ?></em><a href="details.php?id=<?php echo $value->id; ?>" target="_blank"><?php echo $value->title; ?></a></li>
                <?php } ?>
            <?php } ?>
        </ul>
    </div>
    <div class="vote">
        <h2>调查投票</h2>
        <h3>请问您是怎么知道本站的：</h3>
        <form>
            <label><input type="radio" name="vote" checked="checked" /> 门户网站的搜索引擎</label>
            <label><input type="radio" name="vote" /> Google或百度搜索</label>
            <label><input type="radio" name="vote" /> 别的网站上的链接</label>
            <label><input type="radio" name="vote" /> 朋友介绍或者电视广告</label>
            <p><input type="submit" value="投票" name="send" /> <input type="button" value="查看" /></p>
        </form>
    </div>
</div>
<div id="picnews">
    <h2>图文资讯</h2>
    <?php if(@$this->_vars['PicList']) { ?>
    <?php foreach($this->_vars['PicList'] as $key=>$value) { ?>
    <dl>
        <dt><a href="details.php?id=<?php echo $value->id; ?>" target="_blank"><img src="<?php echo $value->thumbnail; ?>" alt="<?php echo $value->title; ?>" /></a></dt>
        <dd><a href="details.php?id=<?php echo $value->id; ?>" target="_blank"><?php echo $value->title; ?></a></dd>
    </dl>
    <?php } ?>
    <?php } ?>
</div>
<div id="newslist">
    <?php if(@$this->_vars['FourNav']) { ?>
    <?php foreach($this->_vars['FourNav'] as $key=>$value) { ?>
    <div class="<?php echo $value->class; ?>">
        <h2><a href="###">更多</a><?php echo $value->nav_name; ?></h2>
        <ul>
            <?php if(@$value->list) { ?>
            <?php foreach ($value->list as $key=>$value) { ?>
                <li><em><?php echo $value->date; ?></em><a href="details.php?id=<?php echo $value->id; ?>" target="_blank"><?php echo $value->title; ?></a></li>
            <?php } ?>
            <?php } ?>
        </ul>
    </div>
    <?php } ?>
    <?php } ?>
</div>
<?php $_tpl->create('footer.tpl'); ?>

</body>
</html>